#导包
from rest_framework import serializers
from myapp.models import Cate, User, Pics, Goods, KaoGoods, Comment


class CateSer(serializers.ModelSerializer):

	class Meta:
		model = Cate
		fields = "__all__"


# 评论序列其
class CommentSer(serializers.ModelSerializer):

	class Meta:
		model = Comment
		fields = "__all__"



# 用户类序列其
class UserSer(serializers.ModelSerializer):

	class Meta:
		model = User
		fields = "__all__"


# 幻灯片
class PicsSer(serializers.ModelSerializer):

	class Meta:
		model = Pics
		fields = "__all__"


# 商品
class GoodsSer(serializers.ModelSerializer):

	class Meta:
		model = Goods
		fields = "__all__"


class KaoGoodsSer(serializers.ModelSerializer):

	class Meta:
		model = KaoGoods
		fields = "__all__"
